<div id="todo-list">
<% @page_title = "Listing todos" %>
<h1> <%= @page_title %> </h1>

<table cellpadding="10">
  <tr>
  </tr>

<!--<% @todos.each do |todo| %>
  <tr>
    <td><%= link_to 'Show', todo %></td>
    <td><%= link_to 'Edit', edit_todo_path(todo) %></td>
    <td><%= link_to 'Destroy', todo, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>-->

<% @todos.each do |todo| %>
  <tr valign="top" class="<%= cycle('list-line-odd', 'list-line-even') %>">

      <td>
        <span class="list-title"><%= h(todo.title) %></span><br />
        (<%= todo.friendly_status %>)
      </td>

      <td width="60%">
        <span class="list-title"><%= todo.note %></span>
      </td>

      <td class="list-actions">
        <%= link_to 'Show', :action => 'show', :id => todo %><br/>
        <%= link_to 'Edit', :action => 'edit', :id => todo %><br/>
        <%= link_to 'Destroy', todo, :confirm => 'Are you sure?', :method => :delete %>
      </td>
    </tr>

 
<% end %>

</table>
 
 <%= will_paginate @posts %>

</div>
<br />

<%= link_to 'New todo', new_todo_path %>